<?php
namespace Home\Controller;

class InvestorQuestionController extends \Home\Controller\BaseController
{
	/**
	 * 添加问题
	 */
	public function addQuestion()
	{
		$param = I('params');
		$data['question'] = I('data.question', '', '', $param);
		$data['fund_id'] = I('data.fund_id', '', '/^\d+$/', $param);
		$data['user_id'] = $this->user['userId'];
		$data['mobile'] = $this->user['mobile'];
		$res = D('InvestorQuestion')->addQuestion($data);
		$this->ajaxReturn($res);
	}
}